package com.tangyuan.wx;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class WxDto {
    @JsonProperty("id")
    private String id;
    @JsonProperty("create_time")
    private String createTime;
    @JsonProperty("resource_type")
    private String resourceType;
    @JsonProperty("event_type")
    private String eventType;
    @JsonProperty("summary")
    private String summary;
    @JsonProperty("resource")
    private ResourceDTO resource;

    @NoArgsConstructor
    @Data
    public static class ResourceDTO {
        @JsonProperty("original_type")
        private String originalType;
        @JsonProperty("algorithm")
        private String algorithm;
        @JsonProperty("ciphertext")
        private String ciphertext;
        @JsonProperty("associated_data")
        private String associatedData;
        @JsonProperty("nonce")
        private String nonce;
    }
}
